package com.zhang.cn.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

@Service
public class userService {
	@Autowired
	private JdbcTemplate jdbcTemplate;

	public void createuser(Integer id, String name, Integer pwd) {
		System.out.println("createuser");
		jdbcTemplate.update("INSERT into emp VALUES(null,?,?);", id,name, pwd);
		System.out.println("创建成功");
	}
	public String sendSms(){
		
		return "success";
	}

}

